<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@include file="/common/definition.jsp"%>

<html:html>
<tiles:insert beanName="admin-definition" flush="true">
	<tiles:put name="title"> Administrator Management </tiles:put>
	<tiles:put name="body" type="string">
		<div class="col-md-4">
			<s:form theme="simple">

				<p class="muted">Thương Hiệu</p>
				<ul
					style="width: 200px; height: 200px; overflow: auto; border: 1px solid #90bade;">
					<s:if test="productModel.listBrandInfo != null">
						<s:iterator value="productModel.listBrandInfo" id="list">
							<li><s:a action="getBrandInfo">
									<s:property value="brandName" />
									<s:param name="id" value="brandID" />
								</s:a></li>
							<%-- <a href="deleteBrand.action?id=${brandID}">Deleted</a></li> --%>
						</s:iterator>
					</s:if>
					<s:if test="listBrandInfo != null">
						<s:iterator value="listBrandInfo" id="list">
							<li><s:a action="getBrandInfo">
									<s:property value="brandName" />
									<s:param name="id" value="brandID" />
								</s:a></li>
							<%-- <a href="deleteBrand.action?id=${brandID}">Deleted</a></li> --%>
						</s:iterator>
					</s:if>
				</ul>
			</s:form>
		</div>
		<div class="col-md-5">
			<s:form action="editBrand" theme="simple">
				<h1>Brand Detail</h1>
				<div class="form-group">
					<label>Brand ID</label>
					<s:textfield name="brandInfo.brandID" disabled="true"
						cssClass="form-control" />
				</div>
				<div class="form-group">
					<label>Brand Name</label>
					<s:textfield name="brandInfo.brandName" cssClass="form-control" />
				</div>
				<div class="form-group">
					<label>Website</label>
					<s:textfield name="brandInfo.website" cssClass="form-control" />
				</div>
				<div>
					<button>Edit</button>
					<button type="reset">Reset</button>
				</div>
			</s:form>
		</div>

	</tiles:put>
</tiles:insert>
</html:html>
